import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import Main from '../containers/Main';
import NotFound404 from '../components/pages/NotFound404';
import ResultList from '../components/list/List';
import Login from '../components/auth/LoginForm';
import Search from '../components/search/Search';
import SearchList from '../components/list/List';
import Register from '../components/auth/RegisterForm';

export default (
    <Router>
        <Route path="/" component={Main} >
          <Route path="login" component={Login} />
          <Route path="search" component={Search} />
          <Route path="register" component={Register} />
          <Route path="/search/:content" component={SearchList} />
        </Route>
    </Router>
);
